package cn.tedu.storage.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.tedu.storage.mapper.StorageMapper;

@Service
public class StorageServiceImpl implements StorageService{
	
	@Autowired
    private StorageMapper storageMapper;

	@Override
	@Transactional
	public void decrease(Long productId, Integer count) {
		storageMapper.decrease(productId,count);
		
	}
	
	

}
